package com.example.demo.sys.param;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by 蔡超 on 2018/10/7.
 */
@Getter
@Setter
@ToString
public class DeptParam {

    private String id;

    @NotBlank(message = "部门名称不能为空")
    @Length(max = 15,min = 2,message = "部门名称长度为2-15字符")
    private String name;

    private String parentid;

    @NotBlank(message = "展示顺序不能为空")
    private Integer seq;

    @Length(message = "备注字段小于150汉字")
    private String remarks;
}
